package model.dao;

import java.util.List;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import model.entities.*;

@Stateless
public class ItemsDao extends SuperDao<Item> {


	//@PostConstruct
	
	@PersistenceContext(unitName = "selectPC")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public ItemsDao() {
        super(Item.class);
    }
    

    // @org.jboss.ejb3.annotation.TransactionTimeout(6000)
    
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    @Override
    public List<Item> findAll() 
    {
    	return super.findAll();
    }
    
    
    
}
